Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Customize ScrollPhysics for MonthView #286

Conversation

dumazy
Copy link
Contributor

@dumazy dumazy commented Nov 8, 2023

Description

This change allows for adding a specific ScrollPhysics to the month view, for the month view's pages.
In my case, I have the MonthView nested somewhere in a sliver of a CustomScrollView and the month view page's GridView suddenly takes the "scroll focus" while I just want it never to scroll. This option allows me to pass in a NeverScrollableScrollPhysics which fixes the issue.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

No breaking changes

Migration instructions

If the PR is breaking, uncomment this header and add instructions for how to migrate from the
currently released version to the new proposed way.
-->

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Fixes #178

…thView

This allows passing in for example NeverScrollableScrollPhysics to avoid vertical scrolling
* master:
  feat: Added a callback for the default header title for all view SimformSolutionsPvtLtd#241.
  fix: 🐛Day view auto scroll to initial duration when using [scrollOffset] & [startingDuration] SimformSolutionsPvtLtd#269.
  Fixed issue with overlapping events
  formatted changes
  Updated default hourLineBuilder
  Updated Docs
  Fixed horizontal offset
  Added custom hour line painter functionality
@dumazy
Copy link
Contributor Author

dumazy commented Nov 8, 2023

This might solve #178 as well

@dumazy dumazy changed the title feat: Customize ScrollPhysics for MonthView fix: Customize ScrollPhysics for MonthView Nov 8, 2023
Copy link
Collaborator

@PRBaraiya PRBaraiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@PRBaraiya PRBaraiya merged commit 0ac0e44 into SimformSolutionsPvtLtd:master Nov 22, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change scrolling physics
2 participants